<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="ProjetoDeTestes.WebForm1" %>

<%@ Register Src="../Controles/wucDataScript.ascx" TagName="wucDataScript" TagPrefix="uc2" %>
<%@ Register Src="../Controles/wucValorScript.ascx" TagName="wucValorScript" TagPrefix="uc1" %>
<%@ Register Src="../Controles/wucControle.ascx" TagName="wucControle" TagPrefix="uc3" %>
<%@ Register Src="../Controles/wucPodeMeDeletar.ascx" TagName="wucPodeMeDeletar" TagPrefix="uc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <%--<script type ="text/javascript" src="../msc.js"></script>--%>
    <script type="text/javascript">
        function funcaoPerdeFoco(obj1) {
            //var txt1 = this.document.getElementById("<%= TextBox1.ClientID %>");
            //var txt2 = this.document.getElementById("<%= TextBox2.ClientID %>");
            if (obj1.value != '') {
                alert(Math.PI.toFixed(3));
                obj1.value = (parseFloat(obj1.value.replace(",", ".")) + 10.80);
                obj1.value = obj1.value.replace(".", ",");
           }
        }
        function alerta() {
            alert("!!");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <%--        <asp:TextBox ID="TextBox1" runat="server" onKeyUp="Mascara(this,ValorDecimal)" onfocus="this.select();" onblur="Mascara(this,FormataValorDecimal)"></asp:TextBox><br />
        --%>
        <br />
        decimal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inteiro<br />
        <uc1:wucValorScript ID="WucValorScript1" runat="server" ValorDecimal="true" />
        <uc1:wucValorScript ID="WucValorScript2" runat="server" ValorDecimal="false" />
        <br />
        <br />
        <uc2:wucDataScript ID="WucDataScript1" runat="server"></uc2:wucDataScript>
        <br />
        <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:TextBox ID="TextBox1" runat="server" onblur="funcaoPerdeFoco(this);" /><br />
                <asp:TextBox ID="TextBox2" runat="server" />
                <hr />
                <input type="text" id="aa" name="aa" onblur="funcaoPerdeFoco(this);" /><br />
                <input type="text" id="bb" name="bb" />
                valor + 10
                <hr />
                <uc4:wucPodeMeDeletar ID="wucPodeMeDeletar1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
